<?php if(!defined('IN_DISCUZ')) exit('Access Denied'); hookscriptoutput('index');?><?php include template('common/header'); $cates = C::t('portal_category')->range_category(0, 999);
foreach($cates as $cate){
if(!$cate['closed'] && !$cate['upid']){
$catelist[] = $cate;
}
}?><?php $page = isset($_GET['page']) ? intval($_GET['page']) : 1;?><div class="header cl">
<div class="mzlogo"><a title="<?php echo $_G['setting']['bbname'];?>" href="javascript:;"><?php echo $_G['style']['touchlogo'];?></a></div>
<div class="myss"><a href="search.php?mod=portal"><i class="dm-search"></i>搜索关键字</a></div>
</div>
<?php if($catelist && $_G['setting']['mobile']['portal']['catnav']) { ?>
<div class="dhnavs_box">
<div id="dhnavs">
<div id="dhnavs_li">
<ul class="swiper-wrapper"><?php $i = 1;?><?php if(isset($catelist) && is_array($catelist)) foreach($catelist as $value) { ?><li class="swiper-slide"><?php if($i != 1) { ?><span>|</span><?php } ?><a href="<?php echo $_G['cache']['portalcategory'][$value['catid']]['caturl'];?>"><?php echo $value['catname'];?></a></li><?php $i--;?><?php } ?>
</ul>
</div>
</div>
</div>
<script>
new Swiper('#dhnavs_li', {
freeMode : true,
slidesPerView : 'auto',
onTouchMove: function(swiper){
Discuz_Touch_on = 0;
},
onTouchEnd: function(swiper){
Discuz_Touch_on = 1;
},
});
</script>
<?php } ?>
<?php if(!empty($_G['setting']['pluginhooks']['portal_index_top_mobile'])) echo $_G['setting']['pluginhooks']['portal_index_top_mobile'];?>
<?php if($page == 1 && $_G['setting']['mobile']['portal']['wzpicture']) { $imglist = portal_get_list(1, 5, "at.pic != ''");?><?php if(count($imglist['list'])) { ?>
<div class="dz-swiper_box dz-swiper">
<ul class="swiper-wrapper"><?php if(isset($imglist['list']) && is_array($imglist['list'])) foreach($imglist['list'] as $value) { $article_url = fetch_article_url($value);?><li class="swiper-slide"><a href="<?php echo $article_url;?>"><img src="<?php echo $value['pic'];?>" width="100%" class="vm"><span><?php echo $value['title'];?></span></a></li>
<?php } ?>
</ul>
<div class="swiper-forum"></div>
</div>
<script>
var swiper = new Swiper('.dz-swiper', {
autoplay: {
disableOnInteraction: false,
delay: 3000,
},
pagination: {
el: '.swiper-forum',
type: 'fraction',
},
});
</script>
<?php } } ?>
<?php if(!empty($_G['setting']['pluginhooks']['portal_index_middle_mobile'])) echo $_G['setting']['pluginhooks']['portal_index_middle_mobile'];?>
<?php if($_G['setting']['mobile']['portal']['wzlist']) { $list = array();?><?php $list = portal_get_list($page);?><?php if(count($list['list'])) { ?>
<div class="wzlist mt10 cl"><?php if(isset($list['list']) && is_array($list['list'])) foreach($list['list'] as $value) { $highlight = article_title_style($value);?><?php $article_url = fetch_article_url($value);?><li>
<a href="<?php echo $article_url;?>" <?php echo $highlight;?>>
<?php if($value['pic']) { ?><div class="mimg"><img src="<?php echo $value['pic'];?>" alt="<?php echo $value['title'];?>" /></div><?php } ?>
<div class="minfo">
<p class="mtit"><?php echo $value['title'];?></p>
<p class="mtime"><?php echo $value['catname'];?> <?php echo $value['dateline'];?><?php if($value['status'] == 1) { ?> <span>待审核</span><?php } ?></p>
</div>
</a>
</li>
<?php } ?>
</div>
<?php } else { ?>
<div class="threadlist_box mt10 cl">
<div class="threadlist cl">
<ul>
<h4>暂无数据</h4>
</ul>
</div>
</div>
<?php } if($list['multi']) { ?><?php echo $list['multi'];?><?php } ?>
<script>
var flowpage = <?php echo $page;?>;
var mobnodata = '暂无数据';
portal_flowlazyload();
</script>
<?php } ?>
<?php if(!empty($_G['setting']['pluginhooks']['portal_index_bottom_mobile'])) echo $_G['setting']['pluginhooks']['portal_index_bottom_mobile'];?><?php include template('common/footer'); ?>